<script setup>
    // 定义props
    // 写法一
    // defineProps(['title', 'subTitle'])
    
    defineProps({
        title: {
            type: String
        },
        subTitle: {
            type: String
        }
    })
</script>


<template>
    <div class="home-panel">
        <div class="container">
            <div class="head">
                <h3>
                    {{ title }}
                    <span>{{ subTitle }}</span>
                </h3>
            </div>
            <slot></slot>
           
        </div>
    </div>
</template>


<style scoped lang="scss">
    .home-panel{
        background: #fff;
        .head{
            padding: 40px 0;
            h3{
                font-size: 32px;
                font-weight: normal;
                margin-left: 6px;
                span{
                    font-size: 16px;
                    margin-left: 20px;
                    color: #999;
                }
            }
        }
        
    }
</style>